package item.inkcloud.distributionservice.service;


import item.inkcloud.distributionservice.entity.ProvinceInfo;
import item.inkcloud.distributionservice.mapper.DistributionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;

@Service
public class DistributionService {

    @Autowired
     DistributionMapper distributionMapper;


    public ArrayList<ProvinceInfo> getProvinceInfo(){
            ArrayList<ProvinceInfo> infos = null;

            try {
                infos =distributionMapper.findAll();

                return infos;
            }catch (Exception e){


                return infos;
            }


    }

}
